import axios from '@/utils/request';
//获取名片信息
export function iwebApi(params) {
  return axios.get({
    url: '/api/Card/iweb',
    data: params
  }).then((res) => {
    return res
  })
}
//更新名片
export function AdminCardEditApi(params) {
  return axios.post({
    url: '/api/Card/AdminCardEdit',
    data: params
  }).then((res) => {
    return res
  })
}
//微信绑定企业主二维码
export function qrcodeApi(params) {
  return axios.get({
    url: '/api/Card/qrcode',
    data: params
  }).then((res) => {
    return res
  })
}
//获取新闻列表
export function GetNewsApi(params) {
  return axios.get({
    url: '/api/Card/GetAdminNews',
    data: params
  }).then((res) => {
    return res
  })
}
//获取新闻内容
export function GetNewsDetailApi(params) {
  return axios.get({
    url: '/api/Card/getinewsdetail',
    data: params
  }).then((res) => {
    return res
  })
}
//发布新闻
export function AddNewsApi(params) {
  return axios.post({
    url: '/api/Card/AddInews',
    data: params
  }).then((res) => {
    return res
  })
}
//删除新闻
export function RemoveInewsApi(params) {
  return axios.post({
    url: '/api/Card/RemoveInews',
    data: params
  }).then((res) => {
    return res
  })
}
//更新新闻
export function UpdateInewsApi(params) {
  return axios.post({
    url: '/api/Card/UpdateInews',
    data: params
  }).then((res) => {
    return res
  })
}
//获取客户微信、支付宝授权信息
export function weChatApi(params) {
  return axios.get({
    url: '/api/Card/weChat',
    data: params
  }).then((res) => {
    return res
  })
}
//重新客户公众号菜单
export function weChatinitMenusApi(params) {
  return axios.post({
    url: '/api/Card/weChatinitMenus',
    data: params
  }).then((res) => {
    return res
  })
}
//保存授权设置
export function PayManagerApi(params) {
  return axios.post({
    url: '/api/Card/PayManager',
    data: params
  }).then((res) => {
    return res
  })
}
//获取主页设置
export function indexWebApi(params) {
  return axios.get({
    url: '/api/Card/indexWeb',
    data: params
  }).then((res) => {
    return res
  })
}
//删除banner图
export function delbannerimgApi(params) {
  return axios.post({
    url: '/api/Card/delbannerimg',
    data: params
  }).then((res) => {
    return res
  })
}
//删除门店图
export function delmdimgApi(params) {
  return axios.post({
    url: '/api/Card/delmdimg',
    data: params
  }).then((res) => {
    return res
  })
}
//更新主页设置
export function IndexManagerApi(params) {
  return axios.post({
    url: '/api/Card/IndexManager',
    data: params
  }).then((res) => {
    return res
  })
}
//获取产品展示
export function getPjbaseApi(params) {
  return axios.get({
    url: '/api/Show/getPjbase',
    data: params
  }).then((res) => {
    return res
  })
}
//删除零件图片
export function delpjimgApi(params) {
  return axios.post({
    url: '/api/Show/delpjimg',
    data: params
  }).then((res) => {
    return res
  })
}
//上架产品
export function uploadpjApi(params) {
  return axios.post({
    url: '/api/Show/uploadpj',
    data: params
  }).then((res) => {
    return res
  })
}
//下架产品
export function offshelfpjApi(params) {
  return axios.post({
    url: '/api/Show/offshelfpj',
    data: params
  }).then((res) => {
    return res
  })
}
//获取部门列表
export function getDepartmentApi(params) {
  return axios.get({
    url: '/api/Card/Department',
    data: params
  }).then((res) => {
    return res
  })
}
//获取部门明细
export function GetDepartmentDetailApi(params) {
  return axios.get({
    url: '/api/Card/DepartmentDetail',
    data: params
  }).then((res) => {
    return res
  })
}
//新增、删除、注销部门
export function DepartmentApi(params) {
  return axios.post({
    url: '/api/Card/OpDepartment',
    data: params
  }).then((res) => {
    return res
  })
}
//获取客服列表
export function getlinkManApi(params) {
  return axios.get({
    url: '/api/Card/linkMan',
    data: params
  }).then((res) => {
    return res
  })
}
//获取客服明细
export function GetLinkManDetailApi(params) {
  return axios.get({
    url: '/api/Card/LinkManDetail',
    data: params
  }).then((res) => {
    return res
  })
}
//新增、删除、注销联系人
export function linkManApi(params) {
  return axios.post({
    url: '/api/Card/OplinkMan',
    data: params
  }).then((res) => {
    return res
  })
}
//下单设置
export function orderConfigurationApi(params) {
  return axios.get({
    url: '/api/Card/orderConfiguration',
    data: params
  }).then((res) => {
    return res
  })
}
//保存公告和协议
export function save_DataApi(params) {
  return axios.post({
    url: '/api/Card/save_Data',
    data: params
  }).then((res) => {
    return res
  })
}
//保存下单设置
export function orderManagerApi(params) {
  return axios.post({
    url: '/api/Card/orderManager',
    data: params
  }).then((res) => {
    return res
  })
}
//保存下单时间
export function orderOnlineTimeApi(params) {
  return axios.post({
    url: '/api/Card/orderOnlineTime',
    data: params
  }).then((res) => {
    return res
  })
}
//获取电商车型
export function getDsSizeListApi(params) {
  return axios.get({
    url: '/api/Show/DsSizeList',
    data: params
  }).then((res) => {
    return res
  })
}
//电商车型操作
export function getProSizeApi(params) {
  return axios.post({
    url: '/api/Show/ProSize',
    data: params
  }).then((res) => {
    return res
  })
}
//获取单个电商车型明细
export function getDsSizeApi(params) {
  return axios.get({
    url: '/api/Show/getDsSize',
    data: params
  }).then((res) => {
    return res
  })
}
//系统日志
export function SyslogApi(params) {
  return axios.get({
    url: '/api/Card/Syslog',
    data: params
  }).then((res) => {
    return res
  })
}
